package com.yiren.manager.utils;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.method.HandlerMethod;
import org.springframework.web.servlet.HandlerInterceptor;
import org.springframework.web.servlet.ModelAndView;



/**
 * 系统拦截器（异常、页面公共数据、权限拦截）
 */
public class SystemInterceptor implements HandlerInterceptor {
    /**
     * 日志对象
     */
    protected final Logger log = LoggerFactory.getLogger(this.getClass());

    public void afterCompletion(HttpServletRequest request,
                                HttpServletResponse response, Object handler, Exception ex)
            throws Exception {
    }

    public void postHandle(HttpServletRequest request,
                           HttpServletResponse response, Object obj, ModelAndView view)
            throws Exception {
    	
    		
    }

    public boolean preHandle(HttpServletRequest request,
                             HttpServletResponse response, Object handler) throws Exception {
    	
        return true;
    }

}
